Add code and body to bad requests collection