exception handler now returns HTPP codes correctly