mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 23:15:10 +03:00
[http] Include error messages for 4xx and 5xx response codes
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -55,6 +55,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
|||||||
#include <ipxe/params.h>
|
#include <ipxe/params.h>
|
||||||
#include <ipxe/profile.h>
|
#include <ipxe/profile.h>
|
||||||
#include <ipxe/vsprintf.h>
|
#include <ipxe/vsprintf.h>
|
||||||
|
#include <ipxe/errortab.h>
|
||||||
#include <ipxe/http.h>
|
#include <ipxe/http.h>
|
||||||
|
|
||||||
/* Disambiguate the various error causes */
|
/* Disambiguate the various error causes */
|
||||||
@@ -110,6 +111,12 @@ static struct profiler http_rx_profiler __profiler = { .name = "http.rx" };
|
|||||||
/** Data transfer profiler */
|
/** Data transfer profiler */
|
||||||
static struct profiler http_xfer_profiler __profiler = { .name = "http.xfer" };
|
static struct profiler http_xfer_profiler __profiler = { .name = "http.xfer" };
|
||||||
|
|
||||||
|
/** Human-readable error messages */
|
||||||
|
struct errortab http_errors[] __errortab = {
|
||||||
|
__einfo_errortab ( EINFO_EIO_4XX ),
|
||||||
|
__einfo_errortab ( EINFO_EIO_5XX ),
|
||||||
|
};
|
||||||
|
|
||||||
static struct http_state http_request;
|
static struct http_state http_request;
|
||||||
static struct http_state http_headers;
|
static struct http_state http_headers;
|
||||||
static struct http_state http_trailers;
|
static struct http_state http_trailers;
|
||||||
|
|||||||
Reference in New Issue
Block a user