I know what you mean. Unfortunately, it was a bit of "when in Rome, do as the Romans do". That whole method is full of those pylint tags.

I believe @singingwolfboy put them (the comment and the disable) in there as a note to himself that he wanted to clean up the HTTP status code values.