Add MATRIX_API_ERROR_BAD_REQUEST to MatrixAPIError

This commit is contained in:
Gergely Polonkai 2016-01-15 17:59:13 +01:00
parent 4b62305c08
commit b24bcd8bca
2 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@
* (e.g. connection error) * (e.g. connection error)
* @MATRIX_API_ERROR_INCOMPLETE: the passed/generated data is * @MATRIX_API_ERROR_INCOMPLETE: the passed/generated data is
* incomplete * incomplete
* @MATRIX_API_ERROR_BAD_REQUEST: the request is invalid
* @MATRIX_API_ERROR_BAD_RESPONSE: malformed response, or the response * @MATRIX_API_ERROR_BAD_RESPONSE: malformed response, or the response
* is not a JSON object * is not a JSON object
* @MATRIX_API_ERROR_INVALID_ROOM_ID: the provided string doesnt * @MATRIX_API_ERROR_INVALID_ROOM_ID: the provided string doesnt

View File

@ -28,6 +28,7 @@ typedef enum {
MATRIX_API_ERROR_NONE, MATRIX_API_ERROR_NONE,
MATRIX_API_ERROR_COMMUNICATION_ERROR, MATRIX_API_ERROR_COMMUNICATION_ERROR,
MATRIX_API_ERROR_INCOMPLETE, MATRIX_API_ERROR_INCOMPLETE,
MATRIX_API_ERROR_BAD_REQUEST,
MATRIX_API_ERROR_BAD_RESPONSE, MATRIX_API_ERROR_BAD_RESPONSE,
MATRIX_API_ERROR_INVALID_ROOM_ID, MATRIX_API_ERROR_INVALID_ROOM_ID,