No permission without 403 and Bad request without 404 fix

Just what the title says