Update README.md
[KisSync.git] / src / errors.js
blob7b4160bdc6bb56d229e3561b391a042cfb80644a
1 import createError from 'create-error';
2 import * as HTTPStatus from './web/httpstatus';
4 export const ChannelStateSizeError = createError('ChannelStateSizeError');
5 export const ChannelNotFoundError = createError('ChannelNotFoundError');
6 export const CSRFError = createError('CSRFError');
7 export const HTTPError = createError('HTTPError', {
8     status: HTTPStatus.INTERNAL_SERVER_ERROR
9 });
10 export const ValidationError = createError('ValidationError');
11 export const InvalidRequestError = createError('InvalidRequestError');