Skip to main content

Error pages

GET Error Pages#

Returns the error pages of the organization

GET ALL
MethodGET ALL
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/errorpages
HeadersAuthorization
ParametersdistributionId, projectId, version
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
{distributionId}Yesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
projctIdYesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty project configuration is returned
VersionYesstring($uuid)v1Shows the version of API
distributionIdYesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": [    {      "id": 0,      "distributionId": "string",      "httpErrorCode": "string",      "errorCachingMinimumTtl": 0,      "customizeErrorResponse": true,      "httpResponseCode": "string"    }  ],  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will get false
errorsstring"string"Indicate if there was an error
messagesstring"string"Returns the response message from back-end
resultarray [object]Returns an distribution object
idinteger($int32)0Returns the identifiers of error pages
distributionIdstring"string"Returns the identifiers of distributions
httpErrorCodestring"string"Returns the http error code for all the created error pages
errorCachingMinimumTtlinteger($int32)0Returns the error of minimum ttl caching
customizeErrorResponsebooltrueReturns true if custiomize error response is selected yes and returns false if no is selected
httpResponseCodestring"string"Returns the http response code of error page
resultInfoobjectReturs information about distribution
totalCountinteger($int32)0Total number of objects in database
pageIndexinteger($int32)0Returns Current pageop paganed data
pageSizeinteger($int32)0Returns Objects per page
totalPagesinteger($int32)0Returns Total pages
hasNextPagebooltrueReturns true if it has a next page, otherwise returns false
hasPreviousPagebooltrueReturns true if it has a previous page, otherwise returns false

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

POST Error Page#

Creates a new error page

POST
MethodPOST
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/errorpages
HeadersAuthorization
ParametersdistributionId, projectId, version
Body{ id, distributionId, httpErrorCode, errorCachingMinimumTtl, customizeErrorResponse, responsePage, httpResponseCode }

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring($uuid)3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
{distributionId}Yesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
projctIdYesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty project configuration is returned
VersionYesstring($uuid)v1Shows the version of API
distributionIdYesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned

Request body#

{  "id": 0,  "distributionId": "string",  "httpErrorCode": 0,  "errorCachingMinimumTtl": 0,  "customizeErrorResponse": true,  "responsePage": "string",  "httpResponseCode": 0}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
idYesinteger($int32)0Sends the identifier of error page
distributionIdYesstring"string"Sends the idetifier of distribution
httpErrorCodeYesstring"string"Sends http error code of error page
errorCachingMinimumTtlYesinteger($int32)0Sends error minimumTtl caching of error page
customizeErrorResponseYesbooltrueSends customized error response of error page
httpResponseCodeYesstring"string"Sends http response code of error page

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": 0,    "distributionId": "string",    "httpErrorCode": 0,    "httpErrorCodeOptions": [      {        "id": 0,        "value": "string"      }    ],    "errorCachingMinimumTtl": 0,    "customizeErrorResponse": true,    "responsePage": "string",    "httpResponseCode": 0,    "httpResponseCodeOptions": [      {        "id": 0,        "value": "string"      }    ]  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will get false
errorsstring"string"Indicate if there was an error
messagesstring"string"Returns the response message from back-end
resultarray [object]Returns an distribution object
idinteger($int32)0Returns the identifiers of error pages
distributionIdstring"string"Returns the identifiers of distributions
httpErrorCodestring"string"Returns the http error code for all the created error pages
httpResponseCodearray [object]"string"Returns an object of http response code of error page
errorCachingMinimumTtlinteger($int32)0Returns the error of minimum ttl caching
customizeErrorResponsebooltrueReturns true if custiomize error response is selected yes and returns false if no is selected
responsePagestring"string"Returns the html response page of error page creation
httpResponseCodestring"string"Returns the http response code of error page
httpResponseCodeOptionsarray [object]integer($int32)Returns an object of http response code for the selected options of error page
idinteger($int32)0Returns the idetifier of error page
valuestring"string"Returns a HTTP status of error page
resultInfoobjectReturs information about distribution
totalCountinteger($int32)0Total number of objects in database
pageIndexinteger($int32)0Returns Current pageop paganed data
pageSizeinteger($int32)0Returns Objects per page
totalPagesinteger($int32)0Returns Total pages
hasNextPagebooltrueReturns true if it has a next page, otherwise returns false
hasPreviousPagebooltrueReturns true if it has a previous page, otherwise returns false

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

GET Error Page#

Get the associated error page.

GET
MethodGET By Id
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/errorpages/{id}
HeadersAuthorization
ParametersdistributionId, version, projectId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
{distributionId}Yesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
{id}Yesinteger($int32)0The errorpage's ID

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
projectIdYesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
versionYesstringv1Shows the version of API
distributionIdYesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
idYesinteger($int32)0The errorpage's ID

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.


{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": 0,    "distributionId": "string",    "httpErrorCode": 0,    "httpErrorCodeOptions": [      {        "id": 0,        "value": "string"      }    ],    "errorCachingMinimumTtl": 0,    "customizeErrorResponse": true,    "responsePage": "string",    "httpResponseCode": 0,    "httpResponseCodeOptions": [      {        "id": 0,        "value": "string"      }    ]  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will get false
errorsstring"string"Indicate if there was an error
messagesstring"string"Returns the response message from back-end
resultarray [object]Returns an distribution object
idinteger($int32)0Returns the identifiers of error pages
distributionIdstring"string"Returns the identifiers of distributions
httpErrorCodestring"string"Returns the http error code for all the created error pages
httpResponseCodearray [object]"string"Returns an object of http response code of error page
errorCachingMinimumTtlinteger($int32)0Returns the error of minimum ttl caching
customizeErrorResponsebooltrueReturns true if custiomize error response is selected yes and returns false if no is selected
responsePagestring"string"Returns the html response page of error page creation
httpResponseCodestring"string"Returns the http response code of error page
httpResponseCodeOptionsarray [object]integer($int32)Returns an object of http response code for the selected options of error page
idinteger($int32)0Returns the idetifier of error page
valuestring"string"Returns a HTTP status of error page
resultInfoobjectReturs information about distribution
totalCountinteger($int32)0Total number of objects in database
pageIndexinteger($int32)0Returns Current pageop paganed data
pageSizeinteger($int32)0Returns Objects per page
totalPagesinteger($int32)0Returns Total pages
hasNextPagebooltrueReturns true if it has a next page, otherwise returns false
hasPreviousPagebooltrueReturns true if it has a previous page, otherwise returns false

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

PUT Error Page#

Updates an existing error page

PUT
MethodPUT
URL or EndPoint​/api​/v{version}​/projects​/{projectId}​/distributions​/{distributionId}​/errorpages​/{id}
HeadersAuthorization
ParametersdistributionId, version, projectId
Body{ id, distributionId, certificateBody, certificatePrivateKey, certificateChain }

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
{distributionId}Yesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
{id}Yesinteger($int32)0The errorpage's ID

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
projectIdYesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
versionYesstringv1Shows the version of API
distributionIdYesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
idYesinteger($int32)0The errorpage's ID

Request Body#

{  "id": 0,  "distributionId": "string",  "httpErrorCode": 0,  "errorCachingMinimumTtl": 0,  "customizeErrorResponse": true,  "responsePage": "string",  "httpResponseCode": 0}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
idYesinteger($int32)0Sends the identifier of error page
distributionIdYesstring"string"Sends the idetifier of distribution
httpErrorCodeYesstring"string"Sends http error code of error page
errorCachingMinimumTtlYesinteger($int32)0Sends error minimumTtl caching of error page
customizeErrorResponseYesbooltrueSends customized error response of error page
httpResponseCodeYesstring"string"Sends http response code of error page

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": 0,    "distributionId": "string",    "httpErrorCode": 0,    "httpErrorCodeOptions": [      {        "id": 0,        "value": "string"      }    ],    "errorCachingMinimumTtl": 0,    "customizeErrorResponse": true,    "responsePage": "string",    "httpResponseCode": 0,    "httpResponseCodeOptions": [      {        "id": 0,        "value": "string"      }    ]  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will get false
errorsstring"string"Indicate if there was an error
messagesstring"string"Returns the response message from back-end
resultarray [object]Returns an distribution object
idinteger($int32)0Returns the identifiers of error pages
distributionIdstring"string"Returns the identifiers of distributions
httpErrorCodestring"string"Returns the http error code for all the created error pages
httpResponseCodearray [object]"string"Returns an object of http response code of error page
errorCachingMinimumTtlinteger($int32)0Returns the error of minimum ttl caching
customizeErrorResponsebooltrueReturns true if custiomize error response is selected yes and returns false if no is selected
responsePagestring"string"Returns the html response page of error page creation
httpResponseCodestring"string"Returns the http response code of error page
httpResponseCodeOptionsarray [object]integer($int32)Returns an object http response code of for selected options of error page
idinteger($int32)0Returns the idetifier of error page
valuestring"string"Returns a HTTP status of error page
resultInfoobjectReturs information about distribution
totalCountinteger($int32)0Total number of objects in database
pageIndexinteger($int32)0Returns Current pageop paganed data
pageSizeinteger($int32)0Returns Objects per page
totalPagesinteger($int32)0Returns Total pages
hasNextPagebooltrueReturns true if it has a next page, otherwise returns false
hasPreviousPagebooltrueReturns true if it has a previous page, otherwise returns false

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 400 Bad Request
  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

DELETE Error Pages#

Delete the associated error page

DELETE
MethodDELETE
URL or EndPoint​/api​/v{version}​/projects​/{projectId}​/distributions​/{distributionId}​/errorpages​/{id}
HeadersAuthorization
ParametersdistributionId, version, projectId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
{distributionId}Yesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
{id}Yesinteger($int32)0The errorpage's ID

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
projectIdYesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
versionYesstringv1Shows the version of API
distributionIdYesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
idYesinteger($int32)0The errorpage's ID

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": 0,    "distributionId": "string",    "httpErrorCode": 0,    "httpErrorCodeOptions": [      {        "id": 0,        "value": "string"      }    ],    "errorCachingMinimumTtl": 0,    "customizeErrorResponse": true,    "responsePage": "string",    "httpResponseCode": 0,    "httpResponseCodeOptions": [      {        "id": 0,        "value": "string"      }    ]  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will get false
errorsstring"string"Indicate if there was an error
messagesstring"string"Returns the response message from back-end
resultarray [object]Returns an distribution object
idinteger($int32)0Returns the identifiers of error pages
distributionIdstring"string"Returns the identifiers of distributions
httpErrorCodestring"string"Returns the http error code for all the created error pages
httpResponseCodearray [object]"string"Returns an object of http response code of error page
errorCachingMinimumTtlinteger($int32)0Returns the error of minimum ttl caching
customizeErrorResponsebooltrueReturns true if custiomize error response is selected yes and returns false if no is selected
responsePagestring"string"Returns the html response page of error page creation
httpResponseCodestring"string"Returns the http response code of error page
httpResponseCodeOptionsarray [object]integer($int32)Returns an object http response code of for selected options of error page
idinteger($int32)0Returns the idetifier of error page
valuestring"string"Returns a HTTP status of error page
resultInfoobjectReturs information about distribution
totalCountinteger($int32)0Total number of objects in database
pageIndexinteger($int32)0Returns Current pageop paganed data
pageSizeinteger($int32)0Returns Objects per page
totalPagesinteger($int32)0Returns Total pages
hasNextPagebooltrueReturns true if it has a next page, otherwise returns false
hasPreviousPagebooltrueReturns true if it has a previous page, otherwise returns false

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found