head and options method in rest api