Flockingbird/roost

View on GitHub
app/errors.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

##
# HTTP 400 bad Request
BadRequest = Class.new(StandardError)
##
# HTTP 404 not found
NotFound = Class.new(StandardError)
##
# HTTP 401 Unauthorized
Unauthorized = Class.new(StandardError)
##
# HTTP 422 bad Request
UnprocessableEntity = Class.new(StandardError)