Fixes missing assignment of response code