Module: Goliath::Rack::Validator

Included in:
API, Goliath::Rack::Validation::RequestMethod, Goliath::Rack::Validation::RequiredParam, Goliath::Rack::Validation::RequiredValue
Defined in:
lib/goliath/rack/validator.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) validation_error(status_code, msg)



6
7
8
# File 'lib/goliath/rack/validator.rb', line 6

def validation_error(status_code, msg)
  [status_code, {}, {:error => msg}]
end