Skip to content

501 Not Implemented

The server does not know how to handle the request method. It’s either a very old server or a brand new API feature coming soon.

Use this if you are building out an API, and someone tries to hit an endpoint you haven’t written the code for yet.

import { HttpException, post } from 'shokupan';
export const importData = post('/import', () => {
// We've defined the route, but haven't written the CSV parser yet
throw new HttpException('CSV Import coming in v2.0', 501);
});