From 4ec4ac48956182fbffd76d8d0cb95e1234b6d82a Mon Sep 17 00:00:00 2001 From: Oleksii Kuznietsov Date: Tue, 24 Oct 2023 10:13:33 +0100 Subject: [PATCH] Add 423 Locked Status exception 423 - The requested resource is currently locked and unavailable. Effectively meaning the store is down or on a maintenance --- lib/bigcommerce/exception.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bigcommerce/exception.rb b/lib/bigcommerce/exception.rb index 5d240d7..e602840 100644 --- a/lib/bigcommerce/exception.rb +++ b/lib/bigcommerce/exception.rb @@ -18,6 +18,7 @@ class MethodNotAllowed < HttpError; end class NotAccepted < HttpError; end class TimeOut < HttpError; end class ResourceConflict < HttpError; end + class LockedStatus < HttpError; end class TooManyRequests < HttpError; end class InternalServerError < HttpError; end class BadGateway < HttpError; end @@ -35,6 +36,7 @@ module HttpErrors 406 => Bigcommerce::NotAccepted, 408 => Bigcommerce::TimeOut, 409 => Bigcommerce::ResourceConflict, + 423 => Bigcommerce::LockedStatus, 429 => Bigcommerce::TooManyRequests, 500 => Bigcommerce::InternalServerError, 502 => Bigcommerce::BadGateway,