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