Allowing option to return a response object during failure