Added proper status code