Method: Booqable::Error.error_for_503
- Defined in:
- lib/booqable/error.rb
.error_for_503(body) ⇒ Object
Return most appropriate error for 503 HTTP status code rubocop:disable Naming/VariableNumber
170 171 172 173 174 175 176 177 |
# File 'lib/booqable/error.rb', line 170 def self.error_for_503(body) # rubocop:enable Naming/VariableNumber if body =~ /read-only/ Booqable::ReadOnlyMode else Booqable::ServiceUnavailable end end |