2015-09-25 06:36:05 +00:00
|
|
|
import createError from 'create-error';
|
2015-10-27 05:56:53 +00:00
|
|
|
import * as HTTPStatus from './web/httpstatus';
|
2015-09-25 06:36:05 +00:00
|
|
|
|
|
|
|
export const ChannelStateSizeError = createError('ChannelStateSizeError');
|
2015-09-26 21:21:42 +00:00
|
|
|
export const ChannelNotFoundError = createError('ChannelNotFoundError');
|
2015-10-27 05:56:53 +00:00
|
|
|
export const CSRFError = createError('CSRFError');
|
|
|
|
export const HTTPError = createError('HTTPError', {
|
|
|
|
status: HTTPStatus.INTERNAL_SERVER_ERROR
|
|
|
|
});
|
2017-03-21 04:37:32 +00:00
|
|
|
export const ValidationError = createError('ValidationError');
|