Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/*
* Copyright (C) 2021 Sienci Labs Inc.
*
* This file is part of gSender.
*
* gSender is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, under version 3 of the License.
*
* gSender is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with gSender. If not, see <https://www.gnu.org/licenses/>.
*
* Contact for information regarding this program and its license
* can be sent through gSender@sienci.com or mailed to the main office
* of Sienci Labs Inc. in Waterloo, Ontario, Canada.
*
*/
// Error Codes
export const ERR_BAD_REQUEST = 400;
export const ERR_UNAUTHORIZED = 401;
export const ERR_FORBIDDEN = 403;
export const ERR_NOT_FOUND = 404;
export const ERR_METHOD_NOT_ALLOWED = 405;
export const ERR_NOT_ACCEPTABLE = 406;
export const ERR_CONFLICT = 409;
export const ERR_LENGTH_REQUIRED = 411;
export const ERR_PRECONDITION_FAILED = 412;
export const ERR_PAYLOAD_TOO_LARGE = 413;
export const ERR_INTERNAL_SERVER_ERROR = 500;
// Event Triggers
export const PROGRAM_START = "gcode:start";
export const PROGRAM_END = "gcode:stop";
export const PROGRAM_PAUSE = "gcode:pause";
export const PROGRAM_RESUME = "gcode:resume";
export const CONTROLLER_READY = "controller:ready";
export const FILE_UNLOAD = "file:unload";
export const FEED_HOLD = "feedhold";
export const CYCLE_START = "cyclestart";
export const HOMING = "homing";
export const SLEEP = "sleep";
export const MACRO_RUN = "macro:run";
export const MACRO_LOAD = "macro:load";
b6d6e761eThis file is pinned to the selected release. Download the original to open it in your design tool.