Handle HTTP status code more gracefully

Add common treatment for non authenticated scenarios.

They are now treated as errors (if common message handling is called). This applies for 401 or for 203 in case of OAuth

Also considers 5xx error codes as an error