FrontendController: Return error on installation error.
[akkoma] / lib / pleroma / web / api_spec / operations / admin / frontend_operation.ex
index 9d7d017a2300ded18ec37a8f258864f430a26d39..96d4cdee7cd3c9fb7e6ec6f629b53aeea1a6c0b9 100644 (file)
@@ -36,7 +36,8 @@ defmodule Pleroma.Web.ApiSpec.Admin.FrontendOperation do
       requestBody: request_body("Parameters", install_request(), required: true),
       responses: %{
         200 => Operation.response("Response", "application/json", list_of_frontends()),
-        403 => Operation.response("Forbidden", "application/json", ApiError)
+        403 => Operation.response("Forbidden", "application/json", ApiError),
+        400 => Operation.response("Error", "application/json", ApiError)
       }
     }
   end