[#69911218] Check auth headers are correctly formed

- Modifies the error message on write api
- Conforms to a feature test and which expects the message `Expected header of form: Authorization: Bearer <token>` for cases where the 'authorization' key can't be found or is malformed