Follow ups from !37359: small refactors to `api_spec.js`
What does this MR do?
A few follow-ups from !37359 (merged):
- Updates all hardcoded HTTP status codes to use the status codes from
http_status.js(for example,200→httpStatusCodes.OK) - Groups all release-related tests inside a
describeand de-duplicates some variable declarations - Adds a missing test for the
releasesmethod
The ee/ version of api_spec.js was also updated to use the http_status.js status codes for consistency.
Edited by Nathan Friend