removing 500 errors for appropriate 4xx errors

Following the update to rest-fs, this replaces the 500 errors that were expected to 4xx errors.

See https://github.com/anandkumarpatel/rest-fs/pull/1 for the rest-fs changes.