edited HttpAction to throw HttpActionException if anything went wrong