# WeOmni Response Header

The below table show the list of description of response header's attributes. Reference: Wikipedia : List of HTTP header fields (opens new window)

WeOmni response header provides an extra attributes called x-total-count which it returned total items that the response body is holding. This value can be used for pagination.

Attributes Description Example
cache-control no-cache
Used to specify directives that must be obeyed by all caching mechanisms along the request-response chain.

max-age
Used to specify directives that must be obeyed by all caching mechanisms along the request-response chain.
cache-control: no-cache, no-store, max-age=0, must-revalidate
content-encoding The type of encoding used on the data. See HTTP compression. content-encoding: gzip
content-type The MIME type of this content. content-type: application/json;charset=UTF-8
date The date and time at which the message was originated (in "HTTP-date" format as defined by RFC 7231 Date/Time Formats). date: Wed, 04 Mar 2020 08:41:28 GMT
expires Gives the date/time after which the response is considered stale (in "HTTP-date" format as defined by RFC 7231) expires: 0
link Used to express a typed relationship with another resource, where the relation type is defined by RFC 5988 link: </api/campaigns?page=0&size=20 >; rel="last",</api/campaigns?page=0&size=20 >; rel="first"
pragma Implementation-specific fields that may have various effects anywhere along the request-response chain. pragma: no-cache
set-cookie An HTTP cookie set-cookie: XSRF-TOKEN=156cd17b-49a2-41f2-b583-21840a11e353; path=/
status CGI header field specifying the status of the HTTP response. Normal HTTP responses use a separate "Status-Line" instead, defined by RFC 7230. status: 200
x-content-type-options The only defined value, "nosniff", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type. This also applies to Google Chrome, when downloading extensions. x-content-type-options: nosniff

x-total-count

Total item count that the response body returned x-total-count: 2
x-xss-protection Cross-site scripting (XSS) filter x-xss-protection: 1; mode=block
Last Updated: 8/25/2020, 7:35:21 AM