Skip to main content

Get Origin Status Code Number

List HTTP status codes and their number for orgin server with 5 minutes data sample.

Request

Request-Line

POST /waap/v1.0/analytics/originHttpCodes HTTP/1.1

Request Parameters

Body Parameters

ParameterTypeRequiredDescription
domainsString[]MandatoryArray of domain names, the max array size is 50.
startTimeStringMandatoryStart time. Format yyyy-MM-ddTHH:mm:ssZ UTC time.
endTimeStringMandatoryEnd time. Format yyyy-MM-ddTHH:mm:ssZ UTC time. Interval between start time and end time cannot be longer than 24 hours.

Response

Response Body

Property nameTypeRequiredDescription
ArrayMandatoryArray of Domain HTTP Codes.

Object: Domain HTTP Codes

ParameterTypeRequiredDescription
domainStringMandatoryName of domain.
httpCodesObjectMandatoryList of HTTP codes and their number of requests values. Array of Http Code.
Object: Http Code
ParameterTypeRequiredDescription
timestampStringMandatoryFormat yyyy-MM-ddTHH:mm:ssZ UTC time. E.g. 2025-09-09T17:35:00Z will return data from 2025-09-09T17:35:00Z to 2025-09-09T17:39:59Z.
httpCodeValuesMapMandatoryHTTP code and it's number of requests in 5 minutes. Format will be map which includes HTTP code and number of requests for this HTTP code.

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
400Request.BadRequestBad request.
400Domains.InvalidDomains is empty or invalid.
400StartTime.InvalidStartTime is empty or invalid.
400EndTime.InvalidEndTime is empty or invalid.
400TimeRange.ExceededThe difference between EndTime and StartTime cannot exceed 24 hours.
400TimeRange.EndBeforeStartEnd time must be later than start time.
400GetOriginHttpCodes.OperationFailedGet Origin Http Codes failed.
404Domain.NotFoundDomain is not found.

Examples

Get Origin Status Code Number

Request

POST /waap/v1.0/analytics/originHttpCodes HTTP/1.1

{
"domains": [
"www.example1.com",
"www.example2.com"
],
"startTime": "2025-09-09T17:35:00Z",
"endTime": "2025-09-09T17:45:00Z"
}

Successful Response Body

[
{
"domain": "www.example1.com",
"httpCodes": [
{
"timestamp": "2025-09-09T17:35:00Z",
"httpCodeValues": {
"200": 3,
"206": 10
}
}
]
},
{
"domain": "www.example2.com",
"httpCodes": [
{
"timestamp": "2025-09-09T17:35:00Z",
"httpCodeValues": {
"200": 2,
"304": 1
}
}
]
}
]