Was missing passing json type as content_type in the HTTP response.