A test with a lower temperature limit. In a negative response, 7F is the negative response service ID, 31 is the service that was refused (RoutineControl), and 87 is this code.
When ECUs send it
The ECU checks a temperature before running the request, and the check failed.
Usually a routine (0x31) or an output test (0x2F) with a precondition written in the ECU's diagnostic specification.