Skip to content

icms_response_Serialize

Raimondas Rimkevičius edited this page Mar 9, 2020 · 1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!

icms_response_Serialize

Creates response of PHP serialize type

Constants

CONTENT_TYPE

const CONTENT_TYPE = text/plain

HTTP_OK

const HTTP_OK = 200

HTTP_CONTINUE

const HTTP_CONTINUE = 100

HTTP_SWITCHING_PROTOCOLS

const HTTP_SWITCHING_PROTOCOLS = 101

HTTP_PROCESSING

const HTTP_PROCESSING = 102

HTTP_CREATED

const HTTP_CREATED = 201

HTTP_ACCEPTED

const HTTP_ACCEPTED = 202

HTTP_NON_AUTHORITATIVE_INFORMATION

const HTTP_NON_AUTHORITATIVE_INFORMATION = 203

HTTP_NO_CONTENT

const HTTP_NO_CONTENT = 204

HTTP_RESET_CONTENT

const HTTP_RESET_CONTENT = 205

HTTP_PARTIAL_CONTENT

const HTTP_PARTIAL_CONTENT = 206

HTTP_MULTI_STATUS

const HTTP_MULTI_STATUS = 207

HTTP_ALREADY_REPORTED

const HTTP_ALREADY_REPORTED = 208

HTTP_IM_USED

const HTTP_IM_USED = 226

HTTP_MULTIPLE_CHOICES

const HTTP_MULTIPLE_CHOICES = 300

HTTP_MOVED_PERMANENTLY

const HTTP_MOVED_PERMANENTLY = 301

HTTP_FOUND

const HTTP_FOUND = 302

HTTP_SEE_OTHER

const HTTP_SEE_OTHER = 303

HTTP_NOT_MODIFIED

const HTTP_NOT_MODIFIED = 304

HTTP_USE_PROXY

const HTTP_USE_PROXY = 305

HTTP_TEMPORARY_REDIRECT

const HTTP_TEMPORARY_REDIRECT = 307

HTTP_PERMANENT_REDIRECT

const HTTP_PERMANENT_REDIRECT = 308

HTTP_RESUME_INCOMPLETE

const HTTP_RESUME_INCOMPLETE = 308

HTTP_BAD_REQUEST

const HTTP_BAD_REQUEST = 400

HTTP_UNAUTHORIZED

const HTTP_UNAUTHORIZED = 401

HTTP_PAYMENT_REQUIRED

const HTTP_PAYMENT_REQUIRED = 402

HTTP_FORBIDDEN

const HTTP_FORBIDDEN = 403

HTTP_NOT_FOUND

const HTTP_NOT_FOUND = 404

HTTP_METHOD_NOT_ALLOWED

const HTTP_METHOD_NOT_ALLOWED = 405

HTTP_NOT_ACCEPTABLE

const HTTP_NOT_ACCEPTABLE = 406

HTTP_PROXY_AUTHENTICATION_REQUIRED

const HTTP_PROXY_AUTHENTICATION_REQUIRED = 407

HTTP_REQUEST_TIMEOUT

const HTTP_REQUEST_TIMEOUT = 408

HTTP_CONFLICT

const HTTP_CONFLICT = 409

HTTP_GONE

const HTTP_GONE = 410

HTTP_LENGTH_REQUIRED

const HTTP_LENGTH_REQUIRED = 411

HTTP_PRECONDITION_FAILED

const HTTP_PRECONDITION_FAILED = 412

HTTP_PAYLOAD_TOO_LARGE

const HTTP_PAYLOAD_TOO_LARGE = 413

HTTP_REQUEST_URI_TOO_LONG

const HTTP_REQUEST_URI_TOO_LONG = 414

HTTP_UNSUPPORTED_MEDIA_TYPE

const HTTP_UNSUPPORTED_MEDIA_TYPE = 415

HTTP_REQUESTED_RANGE_NOT_SATISFIABLE

const HTTP_REQUESTED_RANGE_NOT_SATISFIABLE = 416

HTTP_EXPECTATION_FAILED

const HTTP_EXPECTATION_FAILED = 417

HTTP_IM_A_TEAPOT

const HTTP_IM_A_TEAPOT = 418

HTTP_AUTHENTICATION_TIMEOUT

const HTTP_AUTHENTICATION_TIMEOUT = 419

HTTP_METHOD_FAILURE

const HTTP_METHOD_FAILURE = 420

HTTP_ENHANCE_YOUR_CALM

const HTTP_ENHANCE_YOUR_CALM = 420

HTTP_MISDIRECTED_REQUEST

const HTTP_MISDIRECTED_REQUEST = 421

HTTP_UNPROCESSABLE_ENTITY

const HTTP_UNPROCESSABLE_ENTITY = 422

HTTP_LOCKED

const HTTP_LOCKED = 423

HTTP_FAILED_DEPENDENCY

const HTTP_FAILED_DEPENDENCY = 424

HTTP_UPGRADE_REQUIRED

const HTTP_UPGRADE_REQUIRED = 426

HTTP_PRECONDITION_REQUIRED

const HTTP_PRECONDITION_REQUIRED = 428

HTTP_TOO_MANY_REQUESTS

const HTTP_TOO_MANY_REQUESTS = 429

HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE

const HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE = 431

HTTP_LOGIN_TIMEOUT

const HTTP_LOGIN_TIMEOUT = 440

HTTP_NO_RESPONSE

const HTTP_NO_RESPONSE = 444

HTTP_RETRY_WITH

const HTTP_RETRY_WITH = 449

HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS

const HTTP_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS = 450

HTTP_UNAVAILABLE_FOR_LEGAL_REASONS

const HTTP_UNAVAILABLE_FOR_LEGAL_REASONS = 451

HTTP_REDIRECT

const HTTP_REDIRECT = 451

HTTP_REQUEST_HEADER_TOO_LARGE

const HTTP_REQUEST_HEADER_TOO_LARGE = 494

HTTP_CERT_ERROR

const HTTP_CERT_ERROR = 495

HTTP_NO_CERT

const HTTP_NO_CERT = 496

HTTP_HTTP_TO_HTTPS

const HTTP_HTTP_TO_HTTPS = 497

HTTP_TOKEN_EXPIRED_OR_INVALID

const HTTP_TOKEN_EXPIRED_OR_INVALID = 498

HTTP_CLIENT_CLOSED_REQUEST

const HTTP_CLIENT_CLOSED_REQUEST = 499

HTTP_TOKEN_REQUIRED

const HTTP_TOKEN_REQUIRED = 499

HTTP_INTERNAL_SERVER_ERROR

const HTTP_INTERNAL_SERVER_ERROR = 500

HTTP_NOT_IMPLEMENTED

const HTTP_NOT_IMPLEMENTED = 501

HTTP_BAD_GATEWAY

const HTTP_BAD_GATEWAY = 502

HTTP_SERVICE_UNAVAILABLE

const HTTP_SERVICE_UNAVAILABLE = 503

HTTP_GATEWAY_TIMEOUT

const HTTP_GATEWAY_TIMEOUT = 504

HTTP_HTTP_VERSION_NOT_SUPPORTED

const HTTP_HTTP_VERSION_NOT_SUPPORTED = 505

HTTP_VARIANT_ALSO_NEGOTIATES

const HTTP_VARIANT_ALSO_NEGOTIATES = 506

HTTP_INSUFFICIENT_STORAGE

const HTTP_INSUFFICIENT_STORAGE = 507

HTTP_LOOP_DETECTED

const HTTP_LOOP_DETECTED = 508

HTTP_BANDWIDTH_LIMIT_EXCEEDED

const HTTP_BANDWIDTH_LIMIT_EXCEEDED = 509

HTTP_NOT_EXTENDED

const HTTP_NOT_EXTENDED = 510

HTTP_NETWORK_AUTHENTICATION_REQUIRED

const HTTP_NETWORK_AUTHENTICATION_REQUIRED = 511

HTTP_UNKNOWN_ERROR

const HTTP_UNKNOWN_ERROR = 520

HTTP_ORIGIN_CONNECTION_TIME_OUT

const HTTP_ORIGIN_CONNECTION_TIME_OUT = 522

HTTP_NETWORK_READ_TIMEOUT_ERROR

const HTTP_NETWORK_READ_TIMEOUT_ERROR = 598

HTTP_NETWORK_CONNECT_TIMEOUT_ERROR

const HTTP_NETWORK_CONNECT_TIMEOUT_ERROR = 599

Methods

__construct

mixed icms_response_Text::__construct(string|null msg, int|null http_status, array headers)

Constructor

Arguments

  • msg string|null
  • http_status int|null - <p>If not null sets http status on sending response</p>
  • headers array - <p>Here You can place some additional headers</p>
Clone this wiki locally