Updated to support 403, 405 and 500.