https://www.growthbook.io/ logo
#announcements
Title
# announcements
l

lemon-stone-42630

05/18/2022, 10:50 AM
Hello, just to be sure. Does the API always return
features
field in this case: https://docs.growthbook.io/app/api#feature-definitions-endpoint So, just to be sure that it is reasonable to expect that even if the
status
is something else than
200
there would be empty
{}
for features?
Or what could be the HTTP status other than 200 without request failing with code higher than 400? Are there any cases that apply here?
f

future-teacher-7046

05/18/2022, 11:52 AM
Features are only returned with status code 200. It could in theory return a 5xx status code if something goes wrong on the infrastructure side. And 4xx if there's a network issue or invalid API key
👍 1
15 Views