Respect restrict_unauthenticated in /api/v1/accounts/lookup
[akkoma] / lib / pleroma / web / api_spec / operations / account_operation.ex
index a89f9570e8a74377aeb04b9b802e217c89d44d42..894ad5db06eda7bef1bce4f2841c227afe2ee634 100644 (file)
@@ -432,6 +432,7 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
       ],
       responses: %{
         200 => Operation.response("Account", "application/json", Account),
+        401 => Operation.response("Error", "application/json", ApiError),
         404 => Operation.response("Error", "application/json", ApiError)
       }
     }