If there is 404 or 403 Error RestWS will not return the format requested and instead the corresponding html drupal site will be shown. That should be fixed, so the format requested by the client, should also be returned in this cases.
What's interesting (and may help with tracking this bug down) is that this depends on whether the path requested is one Drupal understands outside of RestWS:
eg:
- user/1 -- get an HTML 403 with the Drupal access denied page
- commerce_order/1 -- get a body with just '403 Forbidden' in it.
Comments
Comment #1
klausiTagging
Comment #2
joachim commentedWhat's interesting (and may help with tracking this bug down) is that this depends on whether the path requested is one Drupal understands outside of RestWS:
eg:
- user/1 -- get an HTML 403 with the Drupal access denied page
- commerce_order/1 -- get a body with just '403 Forbidden' in it.