rangoo94/easen-tools

View on GitHub
packages/core/src/ServiceError/ServiceActionNotFoundError.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
const createServiceErrorSubClass = require('../createServiceErrorSubClass')

/**
 * Error, which says that there wasn't such action available,
 * so it could handle it.
 *
 * Error code in opposite to HTTP 404 is 400,
 * as the request itself was malformed - such API client should know about it.
 *
 * @class ServiceActionNotFoundError
 * @extends ServiceError
 */
module.exports = createServiceErrorSubClass(
  'ServiceActionNotFoundError',
  400
)