Errors are not thrown, responded as json instead