Moved exception to HTTP code conversion to decoraters