explicitely set status and error messages when necessariy in API HTTP responses, closes #2