diff options
author | Andrey Utkin <andrey.utkin@corp.bluecherry.net> | 2014-10-18 00:23:59 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-19 22:32:14 +0200 |
commit | 65639e6bef8046b0ee157a11511ac6f9e8114776 (patch) | |
tree | 0646c962f4cab6039618978e69e1f4c523991adf /libavutil/error.c | |
parent | f63d381387165eddff47ea896794837332b5cbd2 (diff) | |
download | ffmpeg-65639e6bef8046b0ee157a11511ac6f9e8114776.tar.gz |
avutil/error: Introduce new error codes for 4XX and 5XX replies from remote servers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/error.c')
-rw-r--r-- | libavutil/error.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/error.c b/libavutil/error.c index 9be78bcf57..d2868ac9c7 100644 --- a/libavutil/error.c +++ b/libavutil/error.c @@ -53,6 +53,12 @@ static const struct error_entry error_entries[] = { { ERROR_TAG(UNKNOWN), "Unknown error occurred" }, { ERROR_TAG(EXPERIMENTAL), "Experimental feature" }, { ERROR_TAG(INPUT_AND_OUTPUT_CHANGED), "Input and output changed" }, + { ERROR_TAG(HTTP_BAD_REQUEST), "Server returned 400 Bad Request" }, + { ERROR_TAG(HTTP_UNAUTHORIZED), "Server returned 401 Unauthorized (authorization failed)" }, + { ERROR_TAG(HTTP_FORBIDDEN), "Server returned 403 Forbidden (access denied)" }, + { ERROR_TAG(HTTP_NOT_FOUND), "Server returned 404 Not Found" }, + { ERROR_TAG(HTTP_OTHER_4XX), "Server returned 4XX Client Error, but not one of 40{0,1,3,4}" }, + { ERROR_TAG(HTTP_SERVER_ERROR), "Server returned 5XX Server Error reply" }, }; int av_strerror(int errnum, char *errbuf, size_t errbuf_size) |