npm i -S api-response-json
ro
yarn add api-response-json
const arj = require('api-response-json')
arj.ok(res,true,"ช้อความ", {data: })
arj.continue(res,true,"ช้อความ", {data: })
arj.switchingProtocols(res,true,"ช้อความ", {data: })
arj.processing(res,true,"ช้อความ", {data: })
arj.processing(res,true,"ช้อความ", {data: })
arj.ok(res,true,"ช้อความ", {data: })
arj.create(res,true,"ช้อความ", {data: })
arj.accepted(res,true,"ช้อความ", {data: })
arj.nonAuthoritativeInformation(res,true,"ช้อความ", {data: })
arj.noContent(res,true,"ช้อความ", {data: })
arj.resetContent(res,true,"ช้อความ", {data: })
arj.partialContent(res,true,"ช้อความ", {data: })
arj.multiStatus(res,true,"ช้อความ", {data: })
arj.multipleChoices(res,true,"ช้อความ", {data: })
arj.movedPermanently(res,true,"ช้อความ", {data: })
arj.found(res,true,"ช้อความ", {data: })
arj.seeOther(res,true,"ช้อความ", {data: })
arj.notModified(res,true,"ช้อความ", {data: })
arj.useProxy(res,true,"ช้อความ", {data: })
arj.switchProxy(res,true,"ช้อความ", {data: })
arj.temporaryRedirect(res,true,"ช้อความ", {data: })
arj.badRequest(res,true,"ช้อความ", {data: })
arj.unauthorized(res,true,"ช้อความ", {data: })
arj.paymentRequired(res,true,"ช้อความ", {data: })
arj.forbidden(res,true,"ช้อความ", {data: })
arj.notFound(res,true,"ช้อความ", {data: })
arj.methodNotAllowed(res,true,"ช้อความ", {data: })
arj.notAcceptable(res,true,"ช้อความ", {data: })
arj.proxyAuthenticationRequired(res,true,"ช้อความ", {data: })
arj.requestTimeout(res,true,"ช้อความ", {data: })
arj.conflict(res,true,"ช้อความ", {data: })
arj.gone(res,true,"ช้อความ", {data: })
arj.lengthRequired(res,true,"ช้อความ", {data: })
arj.preconditionFailed(res,true,"ช้อความ", {data: })
arj.requestEntityTooLarge(res,true,"ช้อความ", {data: })
arj.requestURITooLong(res,true,"ช้อความ", {data: })
arj.unsupportedMediaType(res,true,"ช้อความ", {data: })
arj.requestedRangeNotSatisfiable(res,true,"ช้อความ", {data: })
arj.expectationFailed(res,true,"ช้อความ", {data: })
arj.imATeapot(res,true,"ช้อความ", {data: })
arj.unprocessableEntity(res,true,"ช้อความ", {data: })
arj.locked(res,true,"ช้อความ", {data: })
arj.failedDependency(res,true,"ช้อความ", {data: })
arj.unorderedCollection(res,true,"ช้อความ", {data: })
arj.upgradeRequired(res,true,"ช้อความ", {data: })
arj.retryWith(res,true,"ช้อความ", {data: })
arj.internalServerError(res,true,"ช้อความ", {data: })
arj.notImplemented(res,true,"ช้อความ", {data: })
arj.badGateway(res,true,"ช้อความ", {data: })
arj.serviceUnavailable(res,true,"ช้อความ", {data: })
arj.gatewayTimeout(res,true,"ช้อความ", {data: })
arj.HTTPVersionNotSupported(res,true,"ช้อความ", {data: })
arj.variantAlsoNegotiates(res,true,"ช้อความ", {data: })
arj.insufficientStorage(res,true,"ช้อความ", {data: })
arj.bandwidthLimitExceeded(res,true,"ช้อความ", {data: })
arj.notExtended(res,true,"ช้อความ", {data: })