import{t as e,dm as d,dn as u,dp as s,dq as i,c1 as f}from"./app-k0jcl5PQ.js";const c={notFound:f,forbidden:{rating:s,yearLevel:s,region:i,privacy:s},badRequest:u,internalServerError:u};function l(t,a={},o={}){if(!t)return;let r;typeof t=="number"?r=t:r=t.status;const n={...c,...a};if(r&&e.isStatusCodeError(r)){if(r===d.InternalServer){o.internalServerError||e.throw(new u);return}if(r===d.NotFound){o.notFound||e.throw(new n.notFound);return}if(r===d.Forbidden){o.forbidden||e.throw(new n.forbidden.privacy);return}o.badRequest||e.throw(new n.badRequest)}}export{l as h};
//# sourceMappingURL=DIAJ896Y.chunk.js.map
