Follow-up from "Add pagination frontend to Environments dashboard" - use httpStatusCodes

The following discussion from !39637 (merged) should be addressed:

Edited by Jake Burden