Module: CASServer::Controllers
- Defined in:
- lib/casserver/controllers.rb
Defined Under Namespace
Classes: Login, LoginTicketDispenser, Logout, Proxy, ProxyValidate, ServiceValidate, Themes, Validate
Class Method Summary collapse
Class Method Details
.response_status_from_error(error) ⇒ Object
448 449 450 451 452 453 454 455 456 457 |
# File 'lib/casserver/controllers.rb', line 448 def response_status_from_error(error) case error.code.to_s when /^INVALID_/, 'BAD_PGT' 422 when 'INTERNAL_ERROR' 500 else 500 end end |