Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'/api/403': () => { throw new MockStatusError(403); },
'/api/404': () => { throw new MockStatusError(404); },
'/404': () => { throw new MockStatusError(404); }
};
'/404': () => {
throw new MockStatusError(404);
},
};
'/api/401': () => { throw new MockStatusError(401); },
'/api/403': () => { throw new MockStatusError(403); },
'/500': () => {
throw new MockStatusError(500);
},
'/404': () => {
'/404': () => {
throw new MockStatusError(404);
},
'/user/:id': (req: MockRequest) => {
'/api/500': () => { throw new MockStatusError(500); }
};
'/api/404': () => { throw new MockStatusError(404); },
'/api/500': () => { throw new MockStatusError(500); }