You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
when an API request fails, currently the response is just a "500 Internal Server Error" with html body.
This happens e.g. when I try to create a workspace with a group id that is already used by another workspace.
Alternatives:
To align with Nextcloud core or apps, there should be a nested response structure like {ocs: {meta: {statuscode: ***, message: "Id already occupied", status: "failure"}, data: {}}}. The actual http response code would be just 200.
Alternatively, to behave more like some other APIs, there could be a response code and message more specific than "500 Internal Server Error".
The text was updated successfully, but these errors were encountered:
Hello,
when an API request fails, currently the response is just a "500 Internal Server Error" with html body.
This happens e.g. when I try to create a workspace with a group id that is already used by another workspace.
Alternatives:
{ocs: {meta: {statuscode: ***, message: "Id already occupied", status: "failure"}, data: {}}}
. The actual http response code would be just 200.The text was updated successfully, but these errors were encountered: