Correct return code for too many subscriptions.
https://github.com/openbmc/bmcweb/issues/150
Return code should be 503 Service Unavailable, not 403, unauthorized.
The user is authorized, but resources aren't available.
Tested:
Looking for help here.
Signed-off-by: Ed Tanous <ed@tanous.net>
Change-Id: I839df925d1d27411986cb01ffbd19a3ee8ffb1b2
diff --git a/redfish-core/src/error_messages.cpp b/redfish-core/src/error_messages.cpp
index efd2c37..21892ee 100644
--- a/redfish-core/src/error_messages.cpp
+++ b/redfish-core/src/error_messages.cpp
@@ -624,7 +624,7 @@
void eventSubscriptionLimitExceeded(crow::Response& res)
{
- res.result(boost::beast::http::status::forbidden);
+ res.result(boost::beast::http::status::service_unavailable);
addMessageToErrorJson(res.jsonValue, eventSubscriptionLimitExceeded());
}