@opengis/fastify-table
Version:
core-plugins
5 lines (4 loc) • 329 B
JavaScript
import createError from "@fastify/error";
export const NotFoundError = createError("NOT_FOUND_ERROR", "Resource not found: %s", 404);
export const BadRequestError = createError("BAD_REQUEST_ERROR", "Bad request: %s", 400);
export const PayloadTooLargeError = createError("PAYLOAD_TOO_LARGE_ERROR", "Payload Too Large: %s", 413);