Check the type of request