Hi Luigi,

As far as I understand, the default `login_required` decorator returns a redirect response, straight to the login page. I don't want to do that. Instead, I want to return a simple error response back to the client so the client may deal with it as it wishes. We also have this particular redirect after login which passes parameters (see https://github.com/gem/oq-platform/pull/34/files#L4R334). It's slightly messy, but it's the best I can come up with for now.

I agree that this reasoning should be documented. I'll add some comments.