Skip to content

TypeScript API / laikacms/core/errors-extra / ErrorCodeToStatusMap

Variable: ErrorCodeToStatusMap ​

ts
const ErrorCodeToStatusMap: object;

Type Declaration ​

authorizer_failure ​

ts
authorizer_failure: 500;

bad_request ​

ts
bad_request: 400;

conflict ​

ts
conflict: 409;

corrupted_file ​

ts
corrupted_file: 422;

dangerous_file_type ​

ts
dangerous_file_type: 415;

dir_instead_of_file ​

ts
dir_instead_of_file: 403;

embedded_content ​

ts
embedded_content: 422;

entry_already_exists ​

ts
entry_already_exists: 409;

file_instead_of_dir ​

ts
file_instead_of_dir: 403;

file_too_large ​

ts
file_too_large: 413;

forbidden ​

ts
forbidden: 403;

gateway_timeout ​

ts
gateway_timeout: 504;

illegal_state ​

ts
illegal_state: 500;

internal_error ​

ts
internal_error: 500;

invalid_data ​

ts
invalid_data: 400;

lock_conflict ​

ts
lock_conflict: 423;

not_found ​

ts
not_found: 404;

not_implemented ​

ts
not_implemented: 501;

permission_denied ​

ts
permission_denied: 403;

permission_prompt_required ​

ts
permission_prompt_required: 403;

quota_exceeded ​

ts
quota_exceeded: 507;

service_unavailable ​

ts
service_unavailable: 503;

stale_handle ​

ts
stale_handle: 410;

too_many_requests ​

ts
too_many_requests: 429;

unauthenticated ​

ts
unauthenticated: 401;

unauthorized ​

ts
unauthorized: 401;

unknown_error ​

ts
unknown_error: 500;

unsupported_file_type ​

ts
unsupported_file_type: 415;

validation_error ​

ts
validation_error: 400;

version_mismatch ​

ts
version_mismatch: 409;

Released under the MIT License.