diff --git a/lib/custom_exceptions/inbox.rb b/lib/custom_exceptions/inbox.rb deleted file mode 100644 index f33b9b629..000000000 --- a/lib/custom_exceptions/inbox.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -module CustomExceptions::Inbox - class Disabled < CustomExceptions::Base - def message - 'This inbox is currently disabled' - end - - def error_code - 'inbox_disabled' - end - - def http_status - :forbidden - end - end -end diff --git a/lib/custom_exceptions/inbox_disabled.rb b/lib/custom_exceptions/inbox_disabled.rb new file mode 100644 index 000000000..e09ccd30e --- /dev/null +++ b/lib/custom_exceptions/inbox_disabled.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class CustomExceptions::InboxDisabled < CustomExceptions::Base + def message + 'This inbox is currently disabled' + end + + def error_code + 'inbox_disabled' + end + + def http_status + :forbidden + end +end