added an error message for long URIs. Fixed response status logging for successful requests