24 lines
449 B
TypeScript
24 lines
449 B
TypeScript
import { Logging } from "./logging"
|
|
|
|
export interface rejectionError {
|
|
message: string
|
|
statusCode: number
|
|
solved: boolean
|
|
type?: Logging[]
|
|
}
|
|
interface rejectionErrors {
|
|
[key: string]: rejectionError
|
|
}
|
|
|
|
export const rejectionErrors: rejectionErrors = {
|
|
gameNotFound: {
|
|
message: "Game not found!",
|
|
statusCode: 404,
|
|
solved: true,
|
|
},
|
|
unauthorized: {
|
|
message: "Unauthorized",
|
|
statusCode: 401,
|
|
solved: true,
|
|
},
|
|
}
|