Descriptions for errors from Static code generator
over 4 years ago by Dexter K.
Previously, all Bad request error messages weren't accompanied by any specific description.
Recently, we added descriptions for your convenience.
Here are the examples:
Get static store home page:
//If a required parameter is missing
CODE:400
MESSAGE:Missed responseType parameter. Expected request path is /storeId/responseType
//If a store ID format is invalid
CODE:400
MESSAGE:Invalid storeId parameter: number expected
//If a response type is invalid
CODE:400
MESSAGE:Invalid response type. It should be 'static-code'
Get static product page
//If a required parameter is missing
CODE:400
MESSAGE:Missed responseType parameter. Expected request path is /storeId/productId/responseType
//If product ID format is invalid
CODE:400
MESSAGE:Invalid entityId parameter: number expected
//If a response type is invalid
CODE:400
MESSAGE:Invalid response type. It should be 'static-code'
Get static category page
//If a required parameter is missing
CODE:400
MESSAGE:Missed responseType parameter. Expected request path is /storeId/categoryId/responseType
//If a category ID format is invalid
CODE:400
MESSAGE:Invalid entityId parameter: number expected
//If a response type is invalid
CODE:400
MESSAGE:Invalid response type. It should be 'static-code'