Module: SimpleHelper::Http

Defined in:
lib/simple_helper/request.rb

Class Method Summary collapse

Class Method Details

.error_handler(message: nil) ⇒ Object



57
58
59
60
61
62
63
# File 'lib/simple_helper/request.rb', line 57

def error_handler(message: nil)
  {
    "status":  400,
    "error":   'Bad Request',
    "message": message
  }
end