Skip to content

Error Responses

조성재 edited this page Feb 17, 2020 · 2 revisions

400 Bad Request

If there are invalid or missing data items on request, webpi will respond with 400.

"data" includes, parameter, query, body(json or form-data).

Response Body Syntax

body syntax:

{
    "errors": [
        "error_text1",
        "error_text2",
        ...
    ]
}

error text syntax:

missing [type] [item]
wrong [type] [item]

type could be param, body, query.

Currently, there are no validation messages. This may(will) be added later.

500 Internal Server Error

Mainly, deep-system issues (permission, hardware...) are the cause.

Like these:

  • /disk/list/?path=/root/ will cause an error
Clone this wiki locally