TABDEV-2737 adding http status code to error when no json was sent
TABDEV-2737: Fixed the unit tests.
TABDEV-2737: Fixed the implementation return type. It now matches the declaration.