return http 201 when creating index