Module: Usps::Support::StatusIcons
- Defined in:
- lib/usps/support/status_icons.rb
Overview
Font Awesome icon names for the branded HTTP error pages, so the error screens stay visually consistent. Keyed by HTTP status code; 403 covers both the forbidden and incorrect-login pages, which render the same glyph.
Constant Summary collapse
- ICONS =
{ 400 => 'exclamation-circle', 403 => 'ban', 404 => 'compass-slash', 406 => 'align-slash', 422 => 'file-slash', 500 => 'exclamation-triangle', 503 => 'cloud-slash', 504 => 'timer' }.freeze
Class Method Summary collapse
Class Method Details
.for(status) ⇒ Object
20 |
# File 'lib/usps/support/status_icons.rb', line 20 def self.for(status) = ICONS.fetch(status) |