FinishReason - HTTP CODE and JSON response

I am developing an application using the Gemini API.
I need information about HTTP status codes and JSON responses when the model stops generating tokens for following reasons in order to add error handling, but I can’t find this information anywhere.
Would anyone happen to know about this?

FinishReason

BLOCKLIST,PROHIBITED_CONTENT,SPII

Welcome to the forum.

When the server blocks the request, the HTTP status code is 200. The reason it blocked is in the JSON response.

There is some documentation available here - Generating content  |  Gemini API  |  Google AI for Developers and here - Generating content  |  Gemini API  |  Google AI for Developers

Hope that helps.