RestWS error

#1201
Patch applied: http://drupal.org/node/1806142