gx-node-api-errors

0.2.14 • Public • Published

Logo

gx-node-api-errors


Report Bug · Request Feature

Table of Contents

About The Project

Library to use in node js APIs to handle errors

{
    "message": "string",
    "microservice": "string",
    "errors": [
        {
            "itemId": "string",
            "field": "string", 
            "fieldValue": "string",
            "errorCode": 0,
            "errorType": "error",
            "errorMessage": "string" 
        }
    ]
}

Getting Started

Installation

Current stable realease

$ npm install gx-node-api-errors

Usage

To use this proyect you need to set the errors catalog on your app.js file

import { errorsCatalog } from 'gx-node-api-errors'
errorsCatalog.set(catalog)

Readme

Keywords

Package Sidebar

Install

npm i gx-node-api-errors

Weekly Downloads

2

Version

0.2.14

License

MIT

Unpacked Size

12.2 kB

Total Files

5

Last publish

Collaborators

  • brenda_sanrey