Return a sensible HTTP status code.
Enforce sanity checking by ensuring the device specified belongs to the user specified.