fix formatting of error response to be json like all other responses. add test timeouts