ported to feathersjs, http status codes and errors not working as desired, https://github.com/feathersjs/feathers/issues/65