I wrote the rest api end point for reservation. it checks availability of the room and if it isn\'t available respond with error. The point that the code runs and if statement c