You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Portfolio/src/utils/errors.ts

9 lines
226 B

const baseError = <T>(error: T) => ({ error, ok: false });
export const methodNotAllowed = baseError("Method not allowed");
export const unauthorized = {
ok: false,
error: "Could not login; incorrect email or password"
};