index.js
function GenericRestError (type, status) {
  return function Handler (code, message, header) {
    return new RestError(type, status, code, message, header)
  }
}
function GenericRestError (type, status) {
  return function Handler (code, message, header) {
    return new RestError(type, status, code, message, header)
  }
}
function GenericRestError ( type , status ) { return function Handler ( code , message , header ) { return new RestError ( type , status , code , message , header ) } }
Setup pre-defined status code for RestError method
@param {Number} status HTTP Status Code
@private
Setup pre - defined status code for RestError method