Made 'error' key throw exception as well as 'errors' in api responses