Throw the correct errors for bad password, bad json, wrong content type.
Merge pull request #172 from ENCODE-DCC/better-errors-1255

Throw the correct errors for bad password, bad json, wrong content type.