@open-tender/store
Version:
A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API
63 lines (62 loc) • 2.19 kB
JavaScript
export var errorsApi = {
notAuthorized: {
code: 'not_authorized',
status: 401,
title: 'Not Authorized',
detail: 'Your session has expired. Please login again.'
},
methodNotAllowed: {
code: 'method_not_allowed',
status: 405,
title: 'Method Not Allowed',
detail: 'The method is not allowed for the requested URL.'
},
parseError: {
code: 'parse_error',
status: 422,
title: 'Cannot Read File',
detail: 'There was an error reading this file. Please contact Checkmate Support.'
},
internalServerError: {
code: 'internal_server_error',
status: 500,
title: 'Internal Server Error',
detail: 'Internal server error.\nPlease contact Checkmate Support.'
},
missingKioskSettings: {
code: 'internal_server_error',
status: 500,
title: 'Missing Kiosk Settings',
detail: 'Missing Kiosk Settings.\nPlease contact Checkmate Support.'
},
unableToReachConfigs: {
code: 'internal_server_error',
status: 500,
title: 'Internal Server Error',
detail: 'No kiosk Configurations found.\nPlease contact Checkmate Support.'
},
notImplemented: {
code: 'not_implemented',
status: 501,
title: 'Servers Overloaded',
detail: 'Servers temporarily overloaded. Please retry your request. If this issue persists, please contact Checkmate Support.'
},
badGateway: {
code: 'bad_gateway',
status: 502,
title: 'Bad Gateway',
detail: 'Temporary gateway error. Please retry your request. If this issue persists, please contact Checkmate Support.'
},
tempUnavailable: {
code: 'temporarily_unavailable',
status: 503,
title: 'Service Temporarily Unavailable',
detail: 'Service Temporarily Unavailable. Please retry your request. If this issue persists, please contact Checkmate Support.'
},
gatewayTimeout: {
code: 'gateway_timeout',
status: 504,
title: 'Gateway Timeout',
detail: 'Gateway Timeout. Please contact Checkmate Support.'
}
};