response-format
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "response-format", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Module which will provide HTTP-friendly error objects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,14 +9,14 @@ Response Format | ||
- [Methods](#methods) | ||
- [`create(statusCode, [error, message, data])`](#createstatuscode-message-data) | ||
- [`success([message, data])`](#success) | ||
- [`badRequest([message, data])`](#badRequest) | ||
- [`unAuthorized([message, data])`](#unAuthorized) | ||
- [`forbidden([message, data])`](#forbidden) | ||
- [`notFound([message, data])`](#notFound) | ||
- [`notAllowed([message, data])`](#notAllowed) | ||
- [`requestTimeout([message, data])`](#requestTimeout) | ||
- [`internalError([message, data])`](#internalError) | ||
- [`badGateway([message, data])`](#badGateway) | ||
- [`unavailable([message, data])`](#unavailable) | ||
- [`gatewayTimeout([message, data])`](#gatewayTimeout) | ||
- [`create(statusCode, [error, message, data])`](#user-content-createstatuscode-error-message-data) | ||
- [`success([message, data])`](#user-content-successmessage-data) | ||
- [`badRequest([message, data])`](#user-content-badrequestmessage-data) | ||
- [`unAuthorized([message, data])`](#user-content-unauthorizedmessage-data) | ||
- [`forbidden([message, data])`](#user-content-forbiddenmessage-data) | ||
- [`notFound([message, data])`](#user-content-notfoundmessage-data) | ||
- [`notAllowed([message, data])`](#user-content-notallowedmessage-data) | ||
- [`requestTimeout([message, data])`](#user-content-requesttimeoutmessage-data) | ||
- [`internalError([message, data])`](#user-content-internalerrormessage-data) | ||
- [`badGateway([message, data])`](#user-content-badgatewaymessage-data) | ||
- [`unavailable([message, data])`](#user-content-unavailablemessage-data) | ||
- [`gatewayTimeout([message, data])`](#user-content-gatewaytimeoutmessage-data) | ||
@@ -23,0 +23,0 @@ ## Start |
37210