/**
 * These are *all* the error responses that the WebInterface provides
 */ const export const serverError = { "error" : "SERVER_ERROR" , "message" : "The server messed up" } ; const export const invalidTokenError = { "error" : "INVALID_TOKEN" , "message" : "The token provided is not bridged with anything" } ; const export const noTokenError = { "error" : "NO_TOKEN" , "message" : "A token was not provided" } ; const export const noBodyError = { "error" : "NO_BODY" , "message" : "Provide a body with valid JSON" } ; const export const noMessageError = { "error" : "NO_MESSAGE" , "message" : "Provide a message property" } ; const export const noReasonError = { "error" : "NO_REASON" , "message" : "Provide a reason property" } ; const export const messageTypeError = { "error" : "MESSAGE_TYPE" , "message" : "The message property must be type of string" } ; const export const reasonTypeError = { "error" : "REASON_TYPE" , "message" : "The reason property must be type of string" } ; const export const playerTypeError = { "error" : "PLAYER_TYPE" , "message" : "The player property must be type of object with a name and" + " uuid property" } ; const export const noPlayerError = { "error" : "NO_PLAYER" , "message" : "Provide player property" } ; const export const noPlayerNameError = { "error" : "NO_PLAYER_NAME" , "message" : "Provide player name property in player object" } ; const export const playerNameTypeError = { "error" : "PLAYER_NAME_TYPE" , "message" : "Name property of player object must be type of string" } ; const export const noPlayerIdError = { "error" : "NO_PLAYER_UUID" , "message" : "Provide player UUID property in player object" } ; const export const playerIdTypeError = { "error" : "PLAYER_UUID_TYPE" , "message" : "UUID property of player object must be type of string" } ;