Closed as not planned
Description
Current Behavior
When requesting file contents of a file that does not exist via the client api an malformed response is returned.
For exmaple:
GET https://<url-to-panel>/api/client/servers/<server-id>/files/contents?file=<non-existent-file>
Will return:
Content-Type: text/plain; charset=UTF-8
Status: 200
Body: {"error":"An unexpected error was encountered while processing this request","request_id":"..."}
Expected Behavior
When requesting a file that does not exist the api should return a status 404 with the current error message and a Content-Type of application/json
.
Steps to Reproduce
Request the contents of any file that does not exist via the client api as outlined in current behaviour.
Panel Version
1.0.0-beta17
Wings Version
1.0.0-beta9
Games and/or Eggs Affected
No response
Docker Image
No response
Error Logs
Is there an existing issue for this?
- I have searched the existing issues before opening this issue.
- I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
- I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
Metadata
Metadata
Assignees
Labels
No labels