aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/error.h
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2024-04-22 15:25:39 +0100
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2024-04-25 14:13:47 +0100
commitbcae59b8982f0836bfa1f86b320a199f20ca9afc (patch)
tree1d7c8e3ce75049b67c87a10448495298db9d3ab1 /libavutil/error.h
parent5fc4a824db166823cd40eb8e16bce2a92af7abfd (diff)
downloadffmpeg-bcae59b8982f0836bfa1f86b320a199f20ca9afc.tar.gz
avutil/error: Add HTTP 429 Too Many Requests AVERROR code
This is a common error code from e.g. CDNs or cloud storage, and it is useful to be able to handle it differently to a generic 4XX code. Its source is RFC6585. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavutil/error.h')
-rw-r--r--libavutil/error.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/error.h b/libavutil/error.h
index 0d3269aa6d..1efa86c4c1 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -79,6 +79,7 @@
#define AVERROR_HTTP_UNAUTHORIZED FFERRTAG(0xF8,'4','0','1')
#define AVERROR_HTTP_FORBIDDEN FFERRTAG(0xF8,'4','0','3')
#define AVERROR_HTTP_NOT_FOUND FFERRTAG(0xF8,'4','0','4')
+#define AVERROR_HTTP_TOO_MANY_REQUESTS FFERRTAG(0xF8,'4','2','9')
#define AVERROR_HTTP_OTHER_4XX FFERRTAG(0xF8,'4','X','X')
#define AVERROR_HTTP_SERVER_ERROR FFERRTAG(0xF8,'5','X','X')