Total Complexity | 4 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | # frozen_string_literal: true |
||
19 | class ErrorsController < ApplicationController |
||
20 | def not_found |
||
21 | render status: 404, formats: :html |
||
22 | end |
||
23 | |||
24 | def unprocessable |
||
25 | render status: 422, formats: :html |
||
26 | end |
||
27 | |||
28 | def internal_error |
||
29 | render status: 500, formats: :html |
||
30 | end |
||
31 | |||
32 | def unauthorized |
||
33 | render status: 401, formats: :html |
||
34 | end |
||
35 | end |
||
36 |